// beforePack.js
const path = require('path');
const fs = require('fs');
exports.default = async function () {
  const newInstallNshPath = path.resolve(__dirname, './myInstallSection.nsh');
  const destNshPath = path.resolve(__dirname, '../node_modules/app-builder-lib/templates/nsis/installSection.nsh');
  // fs.renameSync(newInstallNshPath, destNshPath);
  // 以上rename会删除原文件
  fs.copyFileSync(newInstallNshPath, destNshPath);
}